# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=php-pear
pkgver=1.10.1
pkgrel=3
epoch=1
arch=('any')
pkgdesc='PHP Extension and Application Repository.'
url='http://pear.php.net/'
depends=('php')
license=('PHP')
source=('https://pear.php.net/install-pear-nozlib.phar')
backup=('etc/php/pear.conf')
sha512sums=('bc5d39907c97844161c94dcf10b09e357f66c63350fc2be9c94bdb891623ef60bb7b6a80009260b000e77f764ec6dc5595dce111574ae963cf467e1515a29f37')

package() {
	PHP_PEAR_SYSCONF_DIR=/etc/php \
	INSTALL_ROOT="$pkgdir" \

  php -n install-pear-nozlib.phar -d /usr/share/pear -b /usr/bin

	rm -rf "$pkgdir/usr/share/pear/."{channels,depdb,depdblock,filemap,lock,registry}
}

